<?xml version="1.0" encoding="UTF-8" ?>

<definitions id="definitions"
             targetNamespace="http://camunda.org/schema/1.0/bpmn20" 
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:camunda="http://camunda.org/schema/1.0/bpmn">
  
  <process id="FormPropertyHandlingProcess" isExecutable="true">
  
    <startEvent id="start">
      <extensionElements>
        <camunda:formProperty id="speaker" variable="SpeakerName"/>
        <camunda:formProperty id="duration" type="long"/>
        <camunda:formProperty id="free" type="boolean" />
      </extensionElements>
    </startEvent>

    <sequenceFlow id="flow1" sourceRef="start" targetRef="task" />
    
    <userTask id="task"
              camunda:assignee="kermit">
      <extensionElements>
        <camunda:formProperty id="room" />
        <camunda:formProperty id="duration" type="long"/>
        <camunda:formProperty id="speaker" variable="SpeakerName" writable="false" />
        <camunda:formProperty id="street" expression="#{address.street}" required="true" />
        <camunda:formProperty id="free" type="boolean"/>
      </extensionElements>
    </userTask>

    <sequenceFlow id="flow2" sourceRef="task" targetRef="wait" />
    
    <receiveTask id="wait" />

  </process>
  
</definitions>
